import type { DictionaryModel } from '../types/dictionary-model'

import { UrlPrefixEnum } from '@wlydfe/service'

import http from '@/service'

export const asyncEnum = (enumKeys: string[]) =>
  http.post<DictionaryModel>(
    {
      url: '/Platformcmdictionary/platformCmDictionaryByIds',
      data: enumKeys,
    },
    {
      urlPrefix: UrlPrefixEnum.PLATFORM,
    },
  )
